package cn.sskxyz.mongodb.multi;

public class MongoDbLinkHolder {

	private static ThreadLocal<MongoLinkContext> threadLocal = new ThreadLocal<>();

	public static void bind(MongoLinkContext source) {
		threadLocal.set(source);
	}

	public static void unbind() {
		threadLocal.remove();
	}

	public static MongoLinkContext get() {
		return threadLocal.get();
	}
}
